3.9.7 \(\int \frac {x^3 (d+e x)}{a+b x+c x^2} \, dx\)

Optimal. Leaf size=169 \[ \frac {\left (-2 a^2 c^2 e+4 a b^2 c e-3 a b c^2 d+b^4 (-e)+b^3 c d\right ) \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{c^4 \sqrt {b^2-4 a c}}-\frac {x \left (a c e+b^2 (-e)+b c d\right )}{c^3}+\frac {\left (2 a b c e-a c^2 d+b^3 (-e)+b^2 c d\right ) \log \left (a+b x+c x^2\right )}{2 c^4}+\frac {x^2 (c d-b e)}{2 c^2}+\frac {e x^3}{3 c} \]

________________________________________________________________________________________

Rubi [A]  time = 0.24, antiderivative size = 169, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {800, 634, 618, 206, 628} \begin {gather*} \frac {\left (-2 a^2 c^2 e+4 a b^2 c e-3 a b c^2 d+b^3 c d+b^4 (-e)\right ) \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{c^4 \sqrt {b^2-4 a c}}+\frac {\left (2 a b c e-a c^2 d+b^2 c d+b^3 (-e)\right ) \log \left (a+b x+c x^2\right )}{2 c^4}-\frac {x \left (a c e+b^2 (-e)+b c d\right )}{c^3}+\frac {x^2 (c d-b e)}{2 c^2}+\frac {e x^3}{3 c} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(x^3*(d + e*x))/(a + b*x + c*x^2),x]

[Out]

-(((b*c*d - b^2*e + a*c*e)*x)/c^3) + ((c*d - b*e)*x^2)/(2*c^2) + (e*x^3)/(3*c) + ((b^3*c*d - 3*a*b*c^2*d - b^4
*e + 4*a*b^2*c*e - 2*a^2*c^2*e)*ArcTanh[(b + 2*c*x)/Sqrt[b^2 - 4*a*c]])/(c^4*Sqrt[b^2 - 4*a*c]) + ((b^2*c*d -
a*c^2*d - b^3*e + 2*a*b*c*e)*Log[a + b*x + c*x^2])/(2*c^4)

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 618

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 628

Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[(d*Log[RemoveContent[a + b*x +
c*x^2, x]])/b, x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]

Rule 634

Int[((d_.) + (e_.)*(x_))/((a_) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Dist[(2*c*d - b*e)/(2*c), Int[1/(a +
 b*x + c*x^2), x], x] + Dist[e/(2*c), Int[(b + 2*c*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e}, x] &
& NeQ[2*c*d - b*e, 0] && NeQ[b^2 - 4*a*c, 0] &&  !NiceSqrtQ[b^2 - 4*a*c]

Rule 800

Int[(((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_)))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Int[Exp
andIntegrand[((d + e*x)^m*(f + g*x))/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && NeQ[b^2 -
 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && IntegerQ[m]

Rubi steps

\begin {align*} \int \frac {x^3 (d+e x)}{a+b x+c x^2} \, dx &=\int \left (-\frac {b c d-b^2 e+a c e}{c^3}+\frac {(c d-b e) x}{c^2}+\frac {e x^2}{c}+\frac {a \left (b c d-b^2 e+a c e\right )+\left (b^2 c d-a c^2 d-b^3 e+2 a b c e\right ) x}{c^3 \left (a+b x+c x^2\right )}\right ) \, dx\\ &=-\frac {\left (b c d-b^2 e+a c e\right ) x}{c^3}+\frac {(c d-b e) x^2}{2 c^2}+\frac {e x^3}{3 c}+\frac {\int \frac {a \left (b c d-b^2 e+a c e\right )+\left (b^2 c d-a c^2 d-b^3 e+2 a b c e\right ) x}{a+b x+c x^2} \, dx}{c^3}\\ &=-\frac {\left (b c d-b^2 e+a c e\right ) x}{c^3}+\frac {(c d-b e) x^2}{2 c^2}+\frac {e x^3}{3 c}+\frac {\left (b^2 c d-a c^2 d-b^3 e+2 a b c e\right ) \int \frac {b+2 c x}{a+b x+c x^2} \, dx}{2 c^4}-\frac {\left (b^3 c d-3 a b c^2 d-b^4 e+4 a b^2 c e-2 a^2 c^2 e\right ) \int \frac {1}{a+b x+c x^2} \, dx}{2 c^4}\\ &=-\frac {\left (b c d-b^2 e+a c e\right ) x}{c^3}+\frac {(c d-b e) x^2}{2 c^2}+\frac {e x^3}{3 c}+\frac {\left (b^2 c d-a c^2 d-b^3 e+2 a b c e\right ) \log \left (a+b x+c x^2\right )}{2 c^4}+\frac {\left (b^3 c d-3 a b c^2 d-b^4 e+4 a b^2 c e-2 a^2 c^2 e\right ) \operatorname {Subst}\left (\int \frac {1}{b^2-4 a c-x^2} \, dx,x,b+2 c x\right )}{c^4}\\ &=-\frac {\left (b c d-b^2 e+a c e\right ) x}{c^3}+\frac {(c d-b e) x^2}{2 c^2}+\frac {e x^3}{3 c}+\frac {\left (b^3 c d-3 a b c^2 d-b^4 e+4 a b^2 c e-2 a^2 c^2 e\right ) \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )}{c^4 \sqrt {b^2-4 a c}}+\frac {\left (b^2 c d-a c^2 d-b^3 e+2 a b c e\right ) \log \left (a+b x+c x^2\right )}{2 c^4}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.10, size = 165, normalized size = 0.98 \begin {gather*} \frac {\frac {6 \left (2 a^2 c^2 e-4 a b^2 c e+3 a b c^2 d+b^4 e-b^3 c d\right ) \tan ^{-1}\left (\frac {b+2 c x}{\sqrt {4 a c-b^2}}\right )}{\sqrt {4 a c-b^2}}-6 c x \left (a c e+b^2 (-e)+b c d\right )-3 \left (-2 a b c e+a c^2 d+b^3 e-b^2 c d\right ) \log (a+x (b+c x))+3 c^2 x^2 (c d-b e)+2 c^3 e x^3}{6 c^4} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(x^3*(d + e*x))/(a + b*x + c*x^2),x]

[Out]

(-6*c*(b*c*d - b^2*e + a*c*e)*x + 3*c^2*(c*d - b*e)*x^2 + 2*c^3*e*x^3 + (6*(-(b^3*c*d) + 3*a*b*c^2*d + b^4*e -
 4*a*b^2*c*e + 2*a^2*c^2*e)*ArcTan[(b + 2*c*x)/Sqrt[-b^2 + 4*a*c]])/Sqrt[-b^2 + 4*a*c] - 3*(-(b^2*c*d) + a*c^2
*d + b^3*e - 2*a*b*c*e)*Log[a + x*(b + c*x)])/(6*c^4)

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^3 (d+e x)}{a+b x+c x^2} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(x^3*(d + e*x))/(a + b*x + c*x^2),x]

[Out]

IntegrateAlgebraic[(x^3*(d + e*x))/(a + b*x + c*x^2), x]

________________________________________________________________________________________

fricas [A]  time = 0.45, size = 563, normalized size = 3.33 \begin {gather*} \left [\frac {2 \, {\left (b^{2} c^{3} - 4 \, a c^{4}\right )} e x^{3} + 3 \, {\left ({\left (b^{2} c^{3} - 4 \, a c^{4}\right )} d - {\left (b^{3} c^{2} - 4 \, a b c^{3}\right )} e\right )} x^{2} - 3 \, \sqrt {b^{2} - 4 \, a c} {\left ({\left (b^{3} c - 3 \, a b c^{2}\right )} d - {\left (b^{4} - 4 \, a b^{2} c + 2 \, a^{2} c^{2}\right )} e\right )} \log \left (\frac {2 \, c^{2} x^{2} + 2 \, b c x + b^{2} - 2 \, a c - \sqrt {b^{2} - 4 \, a c} {\left (2 \, c x + b\right )}}{c x^{2} + b x + a}\right ) - 6 \, {\left ({\left (b^{3} c^{2} - 4 \, a b c^{3}\right )} d - {\left (b^{4} c - 5 \, a b^{2} c^{2} + 4 \, a^{2} c^{3}\right )} e\right )} x + 3 \, {\left ({\left (b^{4} c - 5 \, a b^{2} c^{2} + 4 \, a^{2} c^{3}\right )} d - {\left (b^{5} - 6 \, a b^{3} c + 8 \, a^{2} b c^{2}\right )} e\right )} \log \left (c x^{2} + b x + a\right )}{6 \, {\left (b^{2} c^{4} - 4 \, a c^{5}\right )}}, \frac {2 \, {\left (b^{2} c^{3} - 4 \, a c^{4}\right )} e x^{3} + 3 \, {\left ({\left (b^{2} c^{3} - 4 \, a c^{4}\right )} d - {\left (b^{3} c^{2} - 4 \, a b c^{3}\right )} e\right )} x^{2} + 6 \, \sqrt {-b^{2} + 4 \, a c} {\left ({\left (b^{3} c - 3 \, a b c^{2}\right )} d - {\left (b^{4} - 4 \, a b^{2} c + 2 \, a^{2} c^{2}\right )} e\right )} \arctan \left (-\frac {\sqrt {-b^{2} + 4 \, a c} {\left (2 \, c x + b\right )}}{b^{2} - 4 \, a c}\right ) - 6 \, {\left ({\left (b^{3} c^{2} - 4 \, a b c^{3}\right )} d - {\left (b^{4} c - 5 \, a b^{2} c^{2} + 4 \, a^{2} c^{3}\right )} e\right )} x + 3 \, {\left ({\left (b^{4} c - 5 \, a b^{2} c^{2} + 4 \, a^{2} c^{3}\right )} d - {\left (b^{5} - 6 \, a b^{3} c + 8 \, a^{2} b c^{2}\right )} e\right )} \log \left (c x^{2} + b x + a\right )}{6 \, {\left (b^{2} c^{4} - 4 \, a c^{5}\right )}}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(e*x+d)/(c*x^2+b*x+a),x, algorithm="fricas")

[Out]

[1/6*(2*(b^2*c^3 - 4*a*c^4)*e*x^3 + 3*((b^2*c^3 - 4*a*c^4)*d - (b^3*c^2 - 4*a*b*c^3)*e)*x^2 - 3*sqrt(b^2 - 4*a
*c)*((b^3*c - 3*a*b*c^2)*d - (b^4 - 4*a*b^2*c + 2*a^2*c^2)*e)*log((2*c^2*x^2 + 2*b*c*x + b^2 - 2*a*c - sqrt(b^
2 - 4*a*c)*(2*c*x + b))/(c*x^2 + b*x + a)) - 6*((b^3*c^2 - 4*a*b*c^3)*d - (b^4*c - 5*a*b^2*c^2 + 4*a^2*c^3)*e)
*x + 3*((b^4*c - 5*a*b^2*c^2 + 4*a^2*c^3)*d - (b^5 - 6*a*b^3*c + 8*a^2*b*c^2)*e)*log(c*x^2 + b*x + a))/(b^2*c^
4 - 4*a*c^5), 1/6*(2*(b^2*c^3 - 4*a*c^4)*e*x^3 + 3*((b^2*c^3 - 4*a*c^4)*d - (b^3*c^2 - 4*a*b*c^3)*e)*x^2 + 6*s
qrt(-b^2 + 4*a*c)*((b^3*c - 3*a*b*c^2)*d - (b^4 - 4*a*b^2*c + 2*a^2*c^2)*e)*arctan(-sqrt(-b^2 + 4*a*c)*(2*c*x
+ b)/(b^2 - 4*a*c)) - 6*((b^3*c^2 - 4*a*b*c^3)*d - (b^4*c - 5*a*b^2*c^2 + 4*a^2*c^3)*e)*x + 3*((b^4*c - 5*a*b^
2*c^2 + 4*a^2*c^3)*d - (b^5 - 6*a*b^3*c + 8*a^2*b*c^2)*e)*log(c*x^2 + b*x + a))/(b^2*c^4 - 4*a*c^5)]

________________________________________________________________________________________

giac [A]  time = 0.16, size = 178, normalized size = 1.05 \begin {gather*} \frac {2 \, c^{2} x^{3} e + 3 \, c^{2} d x^{2} - 3 \, b c x^{2} e - 6 \, b c d x + 6 \, b^{2} x e - 6 \, a c x e}{6 \, c^{3}} + \frac {{\left (b^{2} c d - a c^{2} d - b^{3} e + 2 \, a b c e\right )} \log \left (c x^{2} + b x + a\right )}{2 \, c^{4}} - \frac {{\left (b^{3} c d - 3 \, a b c^{2} d - b^{4} e + 4 \, a b^{2} c e - 2 \, a^{2} c^{2} e\right )} \arctan \left (\frac {2 \, c x + b}{\sqrt {-b^{2} + 4 \, a c}}\right )}{\sqrt {-b^{2} + 4 \, a c} c^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(e*x+d)/(c*x^2+b*x+a),x, algorithm="giac")

[Out]

1/6*(2*c^2*x^3*e + 3*c^2*d*x^2 - 3*b*c*x^2*e - 6*b*c*d*x + 6*b^2*x*e - 6*a*c*x*e)/c^3 + 1/2*(b^2*c*d - a*c^2*d
 - b^3*e + 2*a*b*c*e)*log(c*x^2 + b*x + a)/c^4 - (b^3*c*d - 3*a*b*c^2*d - b^4*e + 4*a*b^2*c*e - 2*a^2*c^2*e)*a
rctan((2*c*x + b)/sqrt(-b^2 + 4*a*c))/(sqrt(-b^2 + 4*a*c)*c^4)

________________________________________________________________________________________

maple [B]  time = 0.05, size = 335, normalized size = 1.98 \begin {gather*} \frac {e \,x^{3}}{3 c}+\frac {2 a^{2} e \arctan \left (\frac {2 c x +b}{\sqrt {4 a c -b^{2}}}\right )}{\sqrt {4 a c -b^{2}}\, c^{2}}-\frac {4 a \,b^{2} e \arctan \left (\frac {2 c x +b}{\sqrt {4 a c -b^{2}}}\right )}{\sqrt {4 a c -b^{2}}\, c^{3}}+\frac {3 a b d \arctan \left (\frac {2 c x +b}{\sqrt {4 a c -b^{2}}}\right )}{\sqrt {4 a c -b^{2}}\, c^{2}}+\frac {b^{4} e \arctan \left (\frac {2 c x +b}{\sqrt {4 a c -b^{2}}}\right )}{\sqrt {4 a c -b^{2}}\, c^{4}}-\frac {b^{3} d \arctan \left (\frac {2 c x +b}{\sqrt {4 a c -b^{2}}}\right )}{\sqrt {4 a c -b^{2}}\, c^{3}}-\frac {b e \,x^{2}}{2 c^{2}}+\frac {d \,x^{2}}{2 c}+\frac {a b e \ln \left (c \,x^{2}+b x +a \right )}{c^{3}}-\frac {a d \ln \left (c \,x^{2}+b x +a \right )}{2 c^{2}}-\frac {a e x}{c^{2}}-\frac {b^{3} e \ln \left (c \,x^{2}+b x +a \right )}{2 c^{4}}+\frac {b^{2} d \ln \left (c \,x^{2}+b x +a \right )}{2 c^{3}}+\frac {b^{2} e x}{c^{3}}-\frac {b d x}{c^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^3*(e*x+d)/(c*x^2+b*x+a),x)

[Out]

1/3/c*e*x^3-1/2*b/c^2*e*x^2+1/2/c*d*x^2-a/c^2*e*x+b^2/c^3*e*x-b/c^2*d*x+1/c^3*ln(c*x^2+b*x+a)*a*b*e-1/2/c^2*ln
(c*x^2+b*x+a)*a*d-1/2/c^4*ln(c*x^2+b*x+a)*b^3*e+1/2/c^3*ln(c*x^2+b*x+a)*b^2*d+2/c^2/(4*a*c-b^2)^(1/2)*arctan((
2*c*x+b)/(4*a*c-b^2)^(1/2))*a^2*e-4/c^3/(4*a*c-b^2)^(1/2)*arctan((2*c*x+b)/(4*a*c-b^2)^(1/2))*a*b^2*e+3/c^2/(4
*a*c-b^2)^(1/2)*arctan((2*c*x+b)/(4*a*c-b^2)^(1/2))*a*b*d+1/c^4/(4*a*c-b^2)^(1/2)*arctan((2*c*x+b)/(4*a*c-b^2)
^(1/2))*b^4*e-1/c^3/(4*a*c-b^2)^(1/2)*arctan((2*c*x+b)/(4*a*c-b^2)^(1/2))*b^3*d

________________________________________________________________________________________

maxima [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^3*(e*x+d)/(c*x^2+b*x+a),x, algorithm="maxima")

[Out]

Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'a
ssume' command before evaluation *may* help (example of legal syntax is 'assume(4*a*c-b^2>0)', see `assume?` f
or more details)Is 4*a*c-b^2 positive or negative?

________________________________________________________________________________________

mupad [B]  time = 1.30, size = 221, normalized size = 1.31 \begin {gather*} x^2\,\left (\frac {d}{2\,c}-\frac {b\,e}{2\,c^2}\right )-x\,\left (\frac {b\,\left (\frac {d}{c}-\frac {b\,e}{c^2}\right )}{c}+\frac {a\,e}{c^2}\right )+\frac {\ln \left (c\,x^2+b\,x+a\right )\,\left (8\,e\,a^2\,b\,c^2-4\,d\,a^2\,c^3-6\,e\,a\,b^3\,c+5\,d\,a\,b^2\,c^2+e\,b^5-d\,b^4\,c\right )}{2\,\left (4\,a\,c^5-b^2\,c^4\right )}+\frac {e\,x^3}{3\,c}+\frac {\mathrm {atan}\left (\frac {b}{\sqrt {4\,a\,c-b^2}}+\frac {2\,c\,x}{\sqrt {4\,a\,c-b^2}}\right )\,\left (2\,e\,a^2\,c^2-4\,e\,a\,b^2\,c+3\,d\,a\,b\,c^2+e\,b^4-d\,b^3\,c\right )}{c^4\,\sqrt {4\,a\,c-b^2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x^3*(d + e*x))/(a + b*x + c*x^2),x)

[Out]

x^2*(d/(2*c) - (b*e)/(2*c^2)) - x*((b*(d/c - (b*e)/c^2))/c + (a*e)/c^2) + (log(a + b*x + c*x^2)*(b^5*e - 4*a^2
*c^3*d - b^4*c*d - 6*a*b^3*c*e + 5*a*b^2*c^2*d + 8*a^2*b*c^2*e))/(2*(4*a*c^5 - b^2*c^4)) + (e*x^3)/(3*c) + (at
an(b/(4*a*c - b^2)^(1/2) + (2*c*x)/(4*a*c - b^2)^(1/2))*(b^4*e + 2*a^2*c^2*e - b^3*c*d + 3*a*b*c^2*d - 4*a*b^2
*c*e))/(c^4*(4*a*c - b^2)^(1/2))

________________________________________________________________________________________

sympy [B]  time = 2.96, size = 840, normalized size = 4.97 \begin {gather*} x^{2} \left (- \frac {b e}{2 c^{2}} + \frac {d}{2 c}\right ) + x \left (- \frac {a e}{c^{2}} + \frac {b^{2} e}{c^{3}} - \frac {b d}{c^{2}}\right ) + \left (- \frac {\sqrt {- 4 a c + b^{2}} \left (2 a^{2} c^{2} e - 4 a b^{2} c e + 3 a b c^{2} d + b^{4} e - b^{3} c d\right )}{2 c^{4} \left (4 a c - b^{2}\right )} + \frac {2 a b c e - a c^{2} d - b^{3} e + b^{2} c d}{2 c^{4}}\right ) \log {\left (x + \frac {- 3 a^{2} b c e + 2 a^{2} c^{2} d + a b^{3} e - a b^{2} c d + 4 a c^{4} \left (- \frac {\sqrt {- 4 a c + b^{2}} \left (2 a^{2} c^{2} e - 4 a b^{2} c e + 3 a b c^{2} d + b^{4} e - b^{3} c d\right )}{2 c^{4} \left (4 a c - b^{2}\right )} + \frac {2 a b c e - a c^{2} d - b^{3} e + b^{2} c d}{2 c^{4}}\right ) - b^{2} c^{3} \left (- \frac {\sqrt {- 4 a c + b^{2}} \left (2 a^{2} c^{2} e - 4 a b^{2} c e + 3 a b c^{2} d + b^{4} e - b^{3} c d\right )}{2 c^{4} \left (4 a c - b^{2}\right )} + \frac {2 a b c e - a c^{2} d - b^{3} e + b^{2} c d}{2 c^{4}}\right )}{2 a^{2} c^{2} e - 4 a b^{2} c e + 3 a b c^{2} d + b^{4} e - b^{3} c d} \right )} + \left (\frac {\sqrt {- 4 a c + b^{2}} \left (2 a^{2} c^{2} e - 4 a b^{2} c e + 3 a b c^{2} d + b^{4} e - b^{3} c d\right )}{2 c^{4} \left (4 a c - b^{2}\right )} + \frac {2 a b c e - a c^{2} d - b^{3} e + b^{2} c d}{2 c^{4}}\right ) \log {\left (x + \frac {- 3 a^{2} b c e + 2 a^{2} c^{2} d + a b^{3} e - a b^{2} c d + 4 a c^{4} \left (\frac {\sqrt {- 4 a c + b^{2}} \left (2 a^{2} c^{2} e - 4 a b^{2} c e + 3 a b c^{2} d + b^{4} e - b^{3} c d\right )}{2 c^{4} \left (4 a c - b^{2}\right )} + \frac {2 a b c e - a c^{2} d - b^{3} e + b^{2} c d}{2 c^{4}}\right ) - b^{2} c^{3} \left (\frac {\sqrt {- 4 a c + b^{2}} \left (2 a^{2} c^{2} e - 4 a b^{2} c e + 3 a b c^{2} d + b^{4} e - b^{3} c d\right )}{2 c^{4} \left (4 a c - b^{2}\right )} + \frac {2 a b c e - a c^{2} d - b^{3} e + b^{2} c d}{2 c^{4}}\right )}{2 a^{2} c^{2} e - 4 a b^{2} c e + 3 a b c^{2} d + b^{4} e - b^{3} c d} \right )} + \frac {e x^{3}}{3 c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**3*(e*x+d)/(c*x**2+b*x+a),x)

[Out]

x**2*(-b*e/(2*c**2) + d/(2*c)) + x*(-a*e/c**2 + b**2*e/c**3 - b*d/c**2) + (-sqrt(-4*a*c + b**2)*(2*a**2*c**2*e
 - 4*a*b**2*c*e + 3*a*b*c**2*d + b**4*e - b**3*c*d)/(2*c**4*(4*a*c - b**2)) + (2*a*b*c*e - a*c**2*d - b**3*e +
 b**2*c*d)/(2*c**4))*log(x + (-3*a**2*b*c*e + 2*a**2*c**2*d + a*b**3*e - a*b**2*c*d + 4*a*c**4*(-sqrt(-4*a*c +
 b**2)*(2*a**2*c**2*e - 4*a*b**2*c*e + 3*a*b*c**2*d + b**4*e - b**3*c*d)/(2*c**4*(4*a*c - b**2)) + (2*a*b*c*e
- a*c**2*d - b**3*e + b**2*c*d)/(2*c**4)) - b**2*c**3*(-sqrt(-4*a*c + b**2)*(2*a**2*c**2*e - 4*a*b**2*c*e + 3*
a*b*c**2*d + b**4*e - b**3*c*d)/(2*c**4*(4*a*c - b**2)) + (2*a*b*c*e - a*c**2*d - b**3*e + b**2*c*d)/(2*c**4))
)/(2*a**2*c**2*e - 4*a*b**2*c*e + 3*a*b*c**2*d + b**4*e - b**3*c*d)) + (sqrt(-4*a*c + b**2)*(2*a**2*c**2*e - 4
*a*b**2*c*e + 3*a*b*c**2*d + b**4*e - b**3*c*d)/(2*c**4*(4*a*c - b**2)) + (2*a*b*c*e - a*c**2*d - b**3*e + b**
2*c*d)/(2*c**4))*log(x + (-3*a**2*b*c*e + 2*a**2*c**2*d + a*b**3*e - a*b**2*c*d + 4*a*c**4*(sqrt(-4*a*c + b**2
)*(2*a**2*c**2*e - 4*a*b**2*c*e + 3*a*b*c**2*d + b**4*e - b**3*c*d)/(2*c**4*(4*a*c - b**2)) + (2*a*b*c*e - a*c
**2*d - b**3*e + b**2*c*d)/(2*c**4)) - b**2*c**3*(sqrt(-4*a*c + b**2)*(2*a**2*c**2*e - 4*a*b**2*c*e + 3*a*b*c*
*2*d + b**4*e - b**3*c*d)/(2*c**4*(4*a*c - b**2)) + (2*a*b*c*e - a*c**2*d - b**3*e + b**2*c*d)/(2*c**4)))/(2*a
**2*c**2*e - 4*a*b**2*c*e + 3*a*b*c**2*d + b**4*e - b**3*c*d)) + e*x**3/(3*c)

________________________________________________________________________________________